package Coffee.service;

import Coffee.bean.User;

import java.util.List;

public interface UserService {
    void insertUser(User user);
    User queryUser(String username);
    void delUserbyName(String username);
    int updateUser(String oldname,String newname, String userpwd);
    List<User> queryAll();//查询所有
    boolean login(String username,String userpwd);//登录
    void insertMoney(int money ,String username);//充值
    void queryMoneyByUsername(String username);//查询用户的余额
    void updateMoney(int money,String username);//消费-钱包操作
    void payOrder(String orderid,String username);//结算订单
    void getCoffee(String orderid);//拿取商品
    void repay(String orderid);//退单

}
